package com.zshan.clinic.admin.mapper.clinic;


import com.zshan.clinic.admin.entity.vo.ClinicDeptVo;
import com.zshan.clinic.admin.entity.vo.ClinicRoomVo;
import com.zshan.clinic.mybatis.SuperMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SpecClinicDeptMapper extends SuperMapper {

    /**
     * 查询科室数量
     * @param clinicId
     * @param deptName
     * @return
     */
    Long getDeptCount(@Param("clinicId") Long clinicId,
                      @Param("deptName") String deptName);

    /**
     * 查询科室列表
     * @param clinicId
     * @param deptName
     * @param offset
     * @param limit
     * @return
     */
    List<ClinicDeptVo> getDeptList(@Param("clinicId") Long clinicId,
                                   @Param("deptName") String deptName,
                                   @Param("offset") Integer offset,
                                   @Param("limit") Integer limit);

    /**
     * 查询诊室数量
     * @param clinicId
     * @param roomName
     * @return
     */
    Long getRoomCount(@Param("clinicId") Long clinicId,
                      @Param("deptId") Long deptId,
                      @Param("roomName") String roomName);

    /**
     * 查询诊室列表
     * @param clinicId
     * @param roomName
     * @param offset
     * @param limit
     * @return
     */
    List<ClinicRoomVo> getRoomList(@Param("clinicId") Long clinicId,
                                   @Param("deptId") Long deptId,
                                   @Param("roomName") String roomName,
                                   @Param("offset") Integer offset,
                                   @Param("limit") Integer limit);


}
